<?php

declare(strict_types=1);

namespace app\controller\Response;

use Omnipay\Common\Message\AbstractResponse;

class TradeWechatJsapiPayResponse extends AbstractResponse
{
    public function isSuccessful(): bool
    {
        return $this->data['code'] == '20000';
    }

    public function getJsSdk(): string
    {
        return $this->data['js_sdk'];
    }
}
